package com.neusoft.liduan.d0914;

public class User {
	private String username;
	private String password;
	private static int count;
	
	public User() {
		this(null);
	}

	public User(String username) {
		this(username, null);
	}
	
	public User(String username, String password) {
		this.username = username;
		this.password = password;
		count++;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "User [username=" + username + ", password=" + password + ", count=" + count + "]";
	}
	
}
